package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 短链接访问统计
 */
@Getter
@Setter
@Document(collection = "short_url_config_statistics")
public class ShortUrlConfigStatistics extends EntityBase {
    @Indexed
    private Date time;
    private Long counter;
    @Indexed
    private String shortUrlConfigId;
    private String timeStr;
    /**
     * 类型,MI:分钟,H:小时,D:日,M:月:Y:年
     */
    @Indexed
    private String type;
}
